package com.coreJava.设计模式.观察者模式2;

import com.Ajava1704.for设计模式.for观察者模式.GuanChaZhe;

/**
 * 作者: LCG
 * 日期: 2020/6/28 23:16
 * 描述:
 */
public class TestGUanChaZhe {

    public static void main(String[] args) throws InterruptedException {

         GuanCha01 guanCha01=new GuanCha01();

         GuanCha02 guanCha02=new GuanCha02();

         TTT ttt=new TTT();

         ttt.register(guanCha01);

         ttt.register(guanCha02);

         ttt.test();

         Thread.sleep(3000);

         ttt.test();



    }

}
